package durationTag

import (
	"gorm.io/gorm"
	"videoPlay/internal/dal/dalModels"
)

type Service struct {
	db *gorm.DB
}

func New(db *gorm.DB) *Service {
	return &Service{db: db}
}

func (s *Service) DeleteById(id uint) error {
	return s.db.Delete(&dalModels.DurationTag{}, id).Error
}
